#ifndef STX_ALGORITHM_NEXT_HPP
#define STX_ALGORITHM_NEXT_HPP

#include <stx/algorithm/advance.hpp>

namespace stx {

template <class T>
inline T
next(T x)
{
    return ++x;
}

template <class T, class Distance>
inline T
next(T x, Distance n)
{
    stx::advance(x, n);
    return x;
}

} // namespace stx

#endif // STX_ALGORITHM_NEXT_HPP
